package com.go.where.family.component;

import java.util.List;

import com.go.where.family.pojo.OrderInfo;
import com.go.where.family.scoket.Head;
import com.go.where.family.vo.GroupVo;
import com.go.where.family.vo.OrderVo;

/**
 * 订单信息组件
 * 
 * @author java
 * 
 */
public interface OrderComponent {

	/**
	 * 分页查询订单列表
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public List<OrderInfo> queryList(String body, Head head);

	/**
	 * 查询团购订单列表
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public List<OrderInfo> queryGroupList(String body, Head head);

	/**
	 * 查询订单详情
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public OrderInfo queryOrderDetail(String body, Head head);
	
	
	/**
	 * 保存报名信息
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public OrderVo saveSignup(String body, Head head);

	/**
	 * 直接购买
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public OrderVo directPay(String body, Head head);

	/**
	 * 团购购买
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public OrderVo groupPay(String body, Head head);

	/**
	 * 更新订单信息
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public boolean update(String body, Head head);
	/**
	 * 删除订单信息
	 * 
	 * @param body
	 * @param head
	 * @return
	 */
	public boolean delete(String body, Head head);
	
	/**
	 * 根据本地订单信息，拼接发送到第三方支付平台的支付信息及签名字符串
	 * @param body
	 * @param head
	 * @return
	 */
	public String sign3PartOrderInfo(String body, Head head);
	
	public GroupVo queryAllGroupInfo(String body, Head head);
}
